Skip to content

ci: check REUSE compliance in pre-commit - #1034

Merged
stv0g merged 1 commit into
masterfrom
ci-reuse-pre-commit
Jul 30, 2026
Merged

ci: check REUSE compliance in pre-commit#1034
stv0g merged 1 commit into
masterfrom
ci-reuse-pre-commit

Conversation

@leonardocarreras

@leonardocarreras leonardocarreras commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

REUSE is only checked in CI, so nothing catches a missing SPDX header locally. Adds the reuse-lint-file hook from fsfe/reuse-tool, pinned to v6.2.0 to match fsfe/reuse-action@v6.

lint-file judges only the files a commit touches; the workflow keeps linting the whole tree for project-level drift. Verified passing on a compliant file and failing on one without a header; pre-commit run --all-files stays green over all 1120 files in ~2s. Needs pre-commit on Python 3.10+, which the python:3.12 CI container satisfies.

Same hook and pin as sogno-platform/dpsim#602.

See also #1035, which touches this file in a different place.

Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
@stv0g
stv0g merged commit f2fa48f into master Jul 30, 2026
56 checks passed
@stv0g
stv0g deleted the ci-reuse-pre-commit branch July 30, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants